<script>
    $(function(){
        EBCMS.INSTALL.error = {$error|default=1};
        if (EBCMS.INSTALL.error) {
            alert('当前环境不满足系统安装需要！');
        };
        EBCMS.INSTALL.gotostep2 = function gotostep2(){
            if (!EBCMS.INSTALL.error) {
                EBCMS.INSTALL.step('2');
            }else{
                alert('当前环境不满足系统安装需要！');
            };
        };
    });
</script>
<div class="license">
    {eq name="error" value="1"}
        <div class="alert alert-danger">当前环境不支持安装本系统，请重新配置环境！</div>
    {/eq}
    <table class="table table-bordered table-responsive table-striped installtable">
        <caption>系统检测</caption>
        <tbody>
            <tr>
                <th>项目</th>
                <th>所需配置</th>
                <th>推荐配置</th>
                <th>当前配置</th>
                <th>检测结果</th>
            </tr>
            {foreach name='check_env' item='vo'}
            <tr>
                    <th>{$vo.0}</th>
                    <td>{$vo.1}</td>
                    <td>{$vo.2}</td>
                    <td>{$vo.3}</td>
                    <td>{eq name="vo.4" value="1"}<span class="glyphicon glyphicon-ok text-primary"></span>{else/}<span class="glyphicon glyphicon-remove text-danger"></span>{/eq}</td>
            </tr>
            {/foreach}
        </tbody>
    </table>
    <table class="table table-bordered table-responsive table-striped installtable">
        <caption>文件/目录权限检测</caption>
        <tbody>
            <tr>
                <th>项目</th>
                <th>所需配置</th>
                <th>推荐配置</th>
                <th>当前配置</th>
                <th>检测结果</th>
            </tr>
            {foreach name='check_dirfile' item='vo'}
            <tr>
                    <th>{$vo.3}</th>
                    <td>可写</td>
                    <td>可写</td>
                    <td>{$vo.1}</td>
                    <td>{eq name="vo.2" value="1"}<span class="glyphicon glyphicon-ok text-primary"></span>{else/}<span class="glyphicon glyphicon-remove text-danger"></span>{/eq}</td>
            </tr>
            {/foreach}
        </tbody>
    </table>
    <table class="table table-bordered table-responsive table-striped installtable">
        <caption>函数检测</caption>
        <tbody>
            <tr>
                <th>项目</th>
                <th>所需配置</th>
                <th>推荐配置</th>
                <th>当前配置</th>
                <th>检测结果</th>
            </tr>
            {foreach name='check_func' item='vo'}
            <tr>
                    <th>{$vo.0}</th>
                    <td>支持</td>
                    <td>支持</td>
                    <td>{$vo.1}</td>
                    <td>{eq name="vo.2" value="1"}<span class="glyphicon glyphicon-ok text-primary"></span>{else/}<span class="glyphicon glyphicon-remove text-danger"></span>{/eq}</td>
            </tr>
            {/foreach}
        </tbody>
    </table>
</div>
<div class="toolbar">
    <div class="pull-right">
        <button type="button" class="btn btn-primary" onclick="EBCMS.INSTALL.step(0);">上一步</button>
        <button type="button" class="btn btn-primary" onclick="EBCMS.INSTALL.gotostep2();">下一步</button>
    </div>
</div>